package project.Service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import project.Mapper.DoctorMapper;
import project.Mapper.UserMapper;
import project.Pojo.Doctor;
import project.Service.UserService;

import java.util.List;

@Service("Doctor")
public class DoctorServiceImpl implements UserService {

//    @Override
//    public void insertMessage(String username, String message, int send) {
//        userMapper.InsertMessage(username, message, send);
//    }

    @Autowired
    private DoctorMapper doctorMapper;

    @Override
    public List<Doctor> selectAll() {
        return doctorMapper.SelectAll();
    }

    @Override
    public List<Doctor> selectByUsername(String username) {
        return doctorMapper.SelectByUsername(username);
    }

    @Override
    public void insertAll(String username, String password) {
        doctorMapper.InsertAll(username, password);
    }

    @Override
    public void updatePassword(String username, String password) {
        doctorMapper.UpdatePassword(username, password);
    }


}
